<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="/WEB-INF/tablib/struts-parasol.tld" prefix="parasol"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>My JSP 'specificationsIndex' starting page</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<style type="text/css">
		body,td,th {
			font-size: 12px;
		}
		</style>
		<script type="text/javascript">
			function add()
			{
				var url = "<%=request.getContextPath()%>/specification/saveForSpecificationJump.action";
				document.getElementById("specificationForm").action = url;
				document.getElementById("specificationForm").submit();
			}
		</script>
	</head>

	<body oncontextmenu="return false">
		<form
			action="<%=request.getContextPath()%>/specification/queryForSpecificationList.action"
			method="post" id="specificationForm">
			<table width="80%" border="1" align="center" cellpadding="1"
				cellspacing="1">
				<tr align="center">
					<td colspan="5" align="right"><input type="button" value="新增" onclick="add()"></td>
				</tr>
				<tr align="center">
					<td width="10%" rowspan="2">
						编号
					</td>
					<td width="20%" rowspan="2">
						规格名称
					</td>
					<td colspan="2">
						规格
					</td>
					<td width="83" rowspan="2">&nbsp;
						
					</td>
				</tr>
				<tr>
					<td width="196" align="center">
						亮度
					</td>
					<td width="185" align="center">
						色温
					</td>
				</tr>
				<c:forEach var="specificationsList"
					varStatus="specificationsListCount" items="${specificationsList}">
					<tr align="center">
						<td width="10%">
							${specificationsListCount.count }
						</td>
						<td width="20%">
							<a href="<%=request.getContextPath()%>/specification/showForSpecifications.action?specificationsid=${specificationsList.specificationsid }">${specificationsList.specificationsname }</a>
						</td>
						<td width="196">
							${specificationsList.brightness }
						</td>
						<td width="185">
							${specificationsList.colortemperature }
						</td>
						<td width="83">
							<a href="<%=request.getContextPath()%>/specification/updateForSpecificationJump.action?specificationsid=${specificationsList.specificationsid }">编辑</a>&nbsp;|&nbsp;
							<a href="<%=request.getContextPath()%>/specification/deleteForSpecifications.action?specificationsid=${specificationsList.specificationsid }">删除</a>
						</td>
					</tr>
				</c:forEach>
				<c:if test="${empty specificationsList}">
					<tr align="center">
						<td colspan="5">
							暂无数据
						</td>
					</tr>
				</c:if>
				<tr align="center">
					<td colspan="5">
						<parasol:pageSeparate totalPage="${pageListSize}"
							pageSize="${pageSize}" currentPage="${currentPage}"
							selectPage="10" actionName="specification/queryForSpecificationList.action"
							methodName="" formName="showAdvice" />
					</td>
				</tr>
			</table>
			<input type="hidden" name="types" value="0" />
			<input type="hidden" name="firstLoad" value="0" />
			<input type="hidden" name="first" value="" />
			<input type="hidden" name="method" value="" />
			<input type="hidden" name="command" value="" />
			<input type="hidden" name="pageSize" value="${pageSize}" />
			<input type="hidden" name="currentPage" value="${currentPage}" />
		</form>
	</body>
</html>
